package com.usian.ai.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 职位信息表
 * </p>
 *
 * @author 风间影月
 * @since 2024-10-04
 */

@TableName("job")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Job implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Integer id;

    /**
     * 职位名称
     */

    @TableField("job_name")
    private String jobName;

    /**
     * 职位描述
     */
    @TableField("job_desc")
    private String jobDesc;

    /**
     * 1：职位开启
2：职位关闭
     */
    @TableField("status")
    private Integer status;

    /**
     * 分配的数字人面试官id，每个职位需要对应的面试官来进行面试
     */
    @TableField("interviewer_id")
    private Integer interviewerId;

    /**
     * 该职位的面试结果最终发给ChatGLM的前缀提示词
     */
    @TableField("prompt")
    private String prompt;

    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @TableField("updated_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updatedTime;


    @TableField(exist = false)
    String interviewerName;

}
